<style type="text/css">
	.sub-link span{display:none;height:13px;float:right}
	.sub-link:hover span {display:inline-block;padding:2px;}
</style>
<table width="100%" height="100%" cellpadding="0" cellspacing="0">
	<tr>
		<td class="side" valign="top"><div id="side">
			<!--LINK TAC VU-->
			<ul class="links">
				<li class="big-link"><a>Tài liệu công ty</a></li>
				<li class="sub-link<?php if($this->getControllerName() =='DocumentIndexController' && getInt('type_id',0)==0)  _e(' sub-link-current');?>"><a href="#Document/Index">Toàn bộ tài liệu</a></li>
				<?php $doc_type  = $this->get('documentTypeLayout');
					foreach($doc_type as $kd=>$vd){
				?>
				<li class='sub-link<?php if($vd['ID'] ==getInt('type_id',0))  _e(' sub-link-current');?>'><a href='#Document/Index/index?type_id=<?php _e($vd['ID'])?>'><?php _e($vd['title'])?></a></li>
				<?php }?>
				<li class="big-link"><a>Tài liệu cá nhân</a></li>
				<li class="sub-link<?php if('md' ==get('t'))  _e(' sub-link-current');?>"><a href="#Document/Indexp/index?t=md">Của tôi tạo</a></li>
				<li class="sub-link<?php if('diS' ==get('t'))  _e(' sub-link-current');?>"><a href="#Document/Indexp/index?t=diS">Được chia sẻ</a></li>
				<?php
				$MyFolder =$this->listDiplomaSide;
				if(isset($MyFolder)){
					foreach($MyFolder as $k=>$v){
						$id = $v['ID'];
						?>
						<li class="sub-link<?php if($id ==getInt('folder_id',0))  _e(' sub-link-current');?>">
							<a title="<?php echo $v['desc'];?>" href="#Document/Indexp/index?folder_id=<?php _e($id);?>"><?php _e($v['title']);?></a>
							<a href="#Document/Indexp/deletefolder?ID=<?php _e($id);?>"><span class="x-delete" ></span></a>
							<a onclick="load_inframe('<?php _baseUrl();?>/Document/Indexp/editfolder?ID=<?php _e($id);?>',{title: 'Sửa thư mục',css_content:{width:'400px'},auto_hidden: true })">
								<span class="x-edit" >
								</span>
							</a>
						</li>
						<?php 
					}
				}
				?>
			</ul>
		</div>
		</td>
		<td class="content" valign="top">
			<div id="content">
				<?php $this->showContent();?>
			</div>
		</td>
	</tr>
</table>